package com.okq.entity;

import com.okq.entity.base.DataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * 描述 : 工单表实体类
 * 作者 : zdl
 * 日期 : 2017/6/27 17:07
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "tb_job")
public class Job extends DataEntity implements Serializable {

    private static final long serialVersionUID = -2909491695718008589L;

    /**
     * 工单编号(系统自动生成日期加随机数)
     */
    @Column(name = "code", length = 40)
    private String code;
    /**
     * 客户Id
     */
    @Column(name = "customerId", length = 40)
    private String customerId;
    /**
     * 紧急状态 0：一般 1：正常 2：紧急
     */
    @Column(name = "state")
    private Integer state;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    /* ---------------- 查询条件 ---------------- */

    /**
     * 客户关键字
     */
    @Transient
    private String customerKeyWord;
    /**
     * 开始时间
     */
    @Transient
    private String startTime;
    /**
     * 结束时间
     */
    @Transient
    private String endTime;
    /**
     * 客户Ids
     */
    @Transient
    private String customerIds;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCustomerKeyWord() {
        return customerKeyWord;
    }

    public void setCustomerKeyWord(String customerKeyWord) {
        this.customerKeyWord = customerKeyWord;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getCustomerIds() {
        return customerIds;
    }

    public void setCustomerIds(String customerIds) {
        this.customerIds = customerIds;
    }
}
